<?php

namespace app\admin\model;

use think\Model;

class Customer extends Model
{
   //设置数据库全名
   protected $table = 'customers';

   // 定义时间戳字段名
   protected $createTime = 'create_at';
   protected $updateTime = 'update_at';

   //客资属于来源
   public function qudao()
   {
      return $this->belongsTo('Qudao','qudao_id');
   }

   //客资属于地区
   public function area()
   {
      return $this->belongsTo('Area','area_id');
   }


}
